import { RegisterComponent } from "./register/register.component"
import { UserComponent } from "./user/user.component"
import { NgModule } from "@angular/core"
import { Routes, RouterModule } from "@angular/router"
import { LoginComponent } from "./login/login.component"

const routes: Routes = [
  {
    path: "user",
    component: UserComponent,
    children: [
      { path: "login", component: LoginComponent },
      { path: "register", component: RegisterComponent },
    ],
  },
]

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class UserRoutingModule {}
